package com.knowif.backend.service;

import com.knowif.pojo.SettleParam;
import com.knowif.pojo.SettleParamExample;
import com.knowif.service.SettleParam_service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：Xh
 * @date ：Created in 2019/6/2 0002 22:59
 */
@Service
public class SettleParamService {

    @Autowired
    private SettleParam_service settleParam_service;

    /**
     * 条件查询settleParam
     * @param settleParamExample
     * @return
     */
    public List<SettleParam> selectSettleParam(SettleParamExample settleParamExample){
        return settleParam_service.selectSettleParam(settleParamExample);
    }

    /**
     * 保存settleParam
     * @return
     */
    public boolean saveSettleParam(SettleParam settleParam){
        int i = settleParam_service.saveSettleParam(settleParam);
        if(i == 0){
            return false;
        }
        return true;
    }

    /**
     * 保存settleParam
     * @return
     */
    public boolean updateSettleParamNotNull(SettleParam settleParam){
        int i = settleParam_service.updateSettleParamNotNull(settleParam);
        if(i == 0){
            return false;
        }
        return true;
    }

    /**
     * 保存settleParam
     * @return
     */
    public boolean updateSettleParam(SettleParam settleParam){
        int i = settleParam_service.updateSettleParam(settleParam);
        if(i == 0){
            return false;
        }
        return true;
    }

    /**
     * 删除settleParam
     * @return
     */
    public boolean deleteSettleParam(int settleParamId){
        int i = settleParam_service.deleteSettleParam(settleParamId);
        if(i == 0){
            return false;
        }
        return true;
    }

}
